package org.eleorc.ioc.javabased.instantiatingcotext;

import org.eleorc.utils.ApplicationContextUtils;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class AppStart {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
        context.register(AppConfig.class, OtherConfig.class);
        context.register(AdditionalConfig.class);

        context.refresh();
        ApplicationContextUtils.printBeanDefinitionInfo(context.getBeanFactory());
    }
}
